const files = require.context('./mudules', true, /\.js$/)

var api = {}

files.keys().forEach(key => {
  if (key === './index.js') return
  Object.keys(files(key)).forEach(key2 => {
    api[key2] = files(key)[key2]
  })
})

export default api